<%-- 
    Document   : driverDetails
    Created on : May 19, 2009, 1:18:00 AM
    Author     : Alexandra
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<c:set var="title" value="Search Driver Details Form" scope="page"/>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>${title}</title>
    </head>
    <body>
        <h1>${title}</h1>
        <f:view>
            
            <!-- Show error messages -->
            <h:messages showSummary="true" showDetail="false"
            style="color: red;
            font-family: 'New Century Schoolbook', serif;
            font-style: oblique"
                        id="errors"/>
            <h:form id="vehicleSearchForm">
                <p>User Name <h:inputText value="#{ViewDriverJSFManagedBean.userName}" required="true"
                                          id="userName"/></p>
                <p>First Name <h:inputText value="#{ViewDriverJSFManagedBean.firstName}" required="false"
                                          id="firstName"/></p>
                <p>Last Name <h:inputText value="#{ViewDriverJSFManagedBean.lastName}"
                                         required="false" id="lastName"/></p>
                <p>Email Address <h:inputText value="#{ViewDriverJSFManagedBean.emailAddress}"
                                             required="false" id="emailAddress"/></p>
                <p>Contact Number <h:inputText value="#{ViewDriverJSFManagedBean.contactNumber}" required="false"
                                              id="contactNumber"/></p>
                <p>Home Address <h:inputText value="#{ViewDriverJSFManagedBean.homeAddress}" required="false"
                                            id="homeAddress"/></p>
                
                <h:commandButton id="submit" value="Search Driver"
                                 action="#{ViewDriverJSFManagedBean.getDriverByUsername}"/>
            </h:form>
        </f:view>
    </body>
</html>

